using BackData;
using Domain.DTOs.RBAC;
using MediatR;

namespace Team.API.Applocation.Command.Users.Permissions
{
    /// <summary>
    /// 查询权限命令
    /// </summary>
    public class QueryPermissionCommand : IRequest<APIPaging<PermissionDTO>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 权限名称模糊查询
        /// </summary>
        public string? PermissionName { get; set; }

        /// <summary>
        /// 父级权限ID筛选
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 权限类型筛选
        /// </summary>
        public int? PermissionType { get; set; }

        /// <summary>
        /// 权限状态筛选
        /// </summary>
        public int? Status { get; set; }
    }
}
